<template>
    <ul>
        <li v-for="item in list" :key="item.id" $router="/detail"+item.id>

            <img :src="item.image" alt="">
        </li>
        <div>
            <p>{{ list.title }}</p>
            <p style="color: red;">￥{{ item.price }}</p>
        </div>
    </ul>
 

</template>
<script setup>
import { ref , onMounted} from 'vue';
import request from '@/utils/request'
onMounted(()=>{
   params:{
    // pagination :40,
    // //  pageNum :1,
   }
}).then(res=>{
    if(res.data.code==200){
        list=res.data.data
    }
})
</script>